package lab02.test11;

public class Rectangle implements Printx {

    double length;
    double wide;
    double area;
    double perimeter;



    public double area() {
        return length*wide;
    }
    double perimeter (){
        return 2*(length+wide);
    }


    @Override
    public double printMyWay() {
        return "长：" + length + "宽：" + wide + "面积：" + area() + "周长：" + perimeter();
    }

}
